package model

import "time"

type ReqCarmine struct {
	Id             int       `json:"id"`
	IsEffective    int       `json:"is_effective" binding:"required,numeric,gte=1,lte=3" required_err:"参数范围1-3【is_effective】" `
	ExpirationDate any       `json:"expiration_date"`
	ExpirationDay  int       `json:"expiration_day"`
	IsZz           int       `json:"is_zz" binding:"required,numeric,gte=1,lte=2" required_err:"参数类型错误1-2【is_zz】"`
	Cover          string    `json:"cover" binding:"required" required_err:"参数缺失【cover】"`
	ZsCount        int       `json:"zs_count"`
	Title          string    `json:"title" binding:"required" required_err:"参数缺失【title】"`
	CreatedAt      time.Time `xorm:"created" json:"-"`
	UpdatedAt      time.Time `xorm:"updated" json:"-"`
	DeletedAt      time.Time `xorm:"deleted" json:"-"`
	SubMchId       string    `json:"sub_mch_id" binding:"required" required_err:"参数缺失【sub_mch_id】"`
	Acid           int       `json:"acid"`
	Tag            string    `json:"tag" binding:"required" required_err:"参数缺失【tag】"`
	Generator      int       `orm:"generator,ignore_empty" json:"generator"`
	Weight         int       `json:"weight"`
	Types          int       `json:"types"`
	Usage          int       `orm:"usage,ignore_empty" json:"usage"`
}
type SearchCarmine struct {
	PageSize int    `json:"pageSize"`
	PageNo   int    `json:"pageNo"`
	Types    int    `json:"types"`
	Keyword  string `json:"keyword"`
	Number   int    `json:"number"`
	FromId   int    `json:"from_id"`
	SubMchId string `json:"sub_mch_id"`
	UserId   int    `json:"user_id"`
}
